import { cloud, default as request } from '@/framework/utils/request'

/**
 * @Description: 店铺详情  /tMallInfo/getMallBaseInfo
 * @param data
 */
export function getShopDetail(data) {
  return request({
    url: `${cloud.mall}/tMallInfo/getMallBaseInfo`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 店铺商品 /goods/purchaserPageList
 * @param data
 */
export function getShopGoods(data) {
  return request({
    url: `${cloud.mall}/goods/purchaserPageList`,
    method: 'get',
    params: data
  })
}

/**
 * @Description: 店铺评价信息 /tMallEvaluate/detail
 * @param data
 */
export function getShopEvaluate(data) {
  return request({
    url: `${cloud.mall}/tMallEvaluate/detail`,
    method: 'get',
    params: data
  })
}
